.class public Lcom/vividsolutions/jts/algorithm/HCoordinate;
.super Ljava/lang/Object;
.source "HCoordinate.java"


# instance fields
.field public w:D

.field public x:D

.field public y:D


# direct methods
.method public constructor <init>(Lcom/vividsolutions/jts/algorithm/HCoordinate;Lcom/vividsolutions/jts/algorithm/HCoordinate;)V
    .locals 8

    .line 97
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 98
    iget-wide v0, p1, Lcom/vividsolutions/jts/algorithm/HCoordinate;->y:D

    iget-wide v2, p2, Lcom/vividsolutions/jts/algorithm/HCoordinate;->w:D

    mul-double v0, v0, v2

    iget-wide v4, p2, Lcom/vividsolutions/jts/algorithm/HCoordinate;->y:D

    iget-wide v6, p1, Lcom/vividsolutions/jts/algorithm/HCoordinate;->w:D

    mul-double v4, v4, v6

    sub-double/2addr v0, v4

    iput-wide v0, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->x:D

    .line 99
    iget-wide v0, p2, Lcom/vividsolutions/jts/algorithm/HCoordinate;->x:D

    mul-double v6, v6, v0

    iget-wide v4, p1, Lcom/vividsolutions/jts/algorithm/HCoordinate;->x:D

    mul-double v2, v2, v4

    sub-double/2addr v6, v2

    iput-wide v6, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->y:D

    .line 100
    iget-wide v2, p2, Lcom/vividsolutions/jts/algorithm/HCoordinate;->y:D

    mul-double v4, v4, v2

    iget-wide p1, p1, Lcom/vividsolutions/jts/algorithm/HCoordinate;->y:D

    mul-double v0, v0, p1

    sub-double/2addr v4, v0

    iput-wide v4, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->w:D

    return-void
.end method

.method public constructor <init>(Lcom/vividsolutions/jts/geom/Coordinate;)V
    .locals 2

    .line 91
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 92
    iget-wide v0, p1, Lcom/vividsolutions/jts/geom/Coordinate;->x:D

    iput-wide v0, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->x:D

    .line 93
    iget-wide v0, p1, Lcom/vividsolutions/jts/geom/Coordinate;->y:D

    iput-wide v0, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->y:D

    const-wide/high16 v0, 0x3ff0000000000000L    # 1.0

    .line 94
    iput-wide v0, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->w:D

    return-void
.end method

.method public static intersection(Lcom/vividsolutions/jts/geom/Coordinate;Lcom/vividsolutions/jts/geom/Coordinate;Lcom/vividsolutions/jts/geom/Coordinate;Lcom/vividsolutions/jts/geom/Coordinate;)Lcom/vividsolutions/jts/geom/Coordinate;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/vividsolutions/jts/algorithm/NotRepresentableException;
        }
    .end annotation

    .line 63
    new-instance v0, Lcom/vividsolutions/jts/algorithm/HCoordinate;

    new-instance v1, Lcom/vividsolutions/jts/algorithm/HCoordinate;

    invoke-direct {v1, p0}, Lcom/vividsolutions/jts/algorithm/HCoordinate;-><init>(Lcom/vividsolutions/jts/geom/Coordinate;)V

    new-instance p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;

    invoke-direct {p0, p1}, Lcom/vividsolutions/jts/algorithm/HCoordinate;-><init>(Lcom/vividsolutions/jts/geom/Coordinate;)V

    invoke-direct {v0, v1, p0}, Lcom/vividsolutions/jts/algorithm/HCoordinate;-><init>(Lcom/vividsolutions/jts/algorithm/HCoordinate;Lcom/vividsolutions/jts/algorithm/HCoordinate;)V

    .line 64
    new-instance p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;

    new-instance p1, Lcom/vividsolutions/jts/algorithm/HCoordinate;

    invoke-direct {p1, p2}, Lcom/vividsolutions/jts/algorithm/HCoordinate;-><init>(Lcom/vividsolutions/jts/geom/Coordinate;)V

    new-instance p2, Lcom/vividsolutions/jts/algorithm/HCoordinate;

    invoke-direct {p2, p3}, Lcom/vividsolutions/jts/algorithm/HCoordinate;-><init>(Lcom/vividsolutions/jts/geom/Coordinate;)V

    invoke-direct {p0, p1, p2}, Lcom/vividsolutions/jts/algorithm/HCoordinate;-><init>(Lcom/vividsolutions/jts/algorithm/HCoordinate;Lcom/vividsolutions/jts/algorithm/HCoordinate;)V

    .line 65
    new-instance p1, Lcom/vividsolutions/jts/algorithm/HCoordinate;

    invoke-direct {p1, v0, p0}, Lcom/vividsolutions/jts/algorithm/HCoordinate;-><init>(Lcom/vividsolutions/jts/algorithm/HCoordinate;Lcom/vividsolutions/jts/algorithm/HCoordinate;)V

    .line 66
    invoke-virtual {p1}, Lcom/vividsolutions/jts/algorithm/HCoordinate;->getCoordinate()Lcom/vividsolutions/jts/geom/Coordinate;

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public getCoordinate()Lcom/vividsolutions/jts/geom/Coordinate;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/vividsolutions/jts/algorithm/NotRepresentableException;
        }
    .end annotation

    .line 120
    new-instance v0, Lcom/vividsolutions/jts/geom/Coordinate;

    invoke-direct {v0}, Lcom/vividsolutions/jts/geom/Coordinate;-><init>()V

    .line 121
    invoke-virtual {p0}, Lcom/vividsolutions/jts/algorithm/HCoordinate;->getX()D

    move-result-wide v1

    iput-wide v1, v0, Lcom/vividsolutions/jts/geom/Coordinate;->x:D

    .line 122
    invoke-virtual {p0}, Lcom/vividsolutions/jts/algorithm/HCoordinate;->getY()D

    move-result-wide v1

    iput-wide v1, v0, Lcom/vividsolutions/jts/geom/Coordinate;->y:D

    return-object v0
.end method

.method public getX()D
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/vividsolutions/jts/algorithm/NotRepresentableException;
        }
    .end annotation

    .line 104
    iget-wide v0, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->x:D

    iget-wide v2, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->w:D

    div-double/2addr v0, v2

    .line 105
    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    move-result v2

    if-nez v2, :cond_0

    invoke-static {v0, v1}, Ljava/lang/Double;->isInfinite(D)Z

    move-result v2

    if-nez v2, :cond_0

    return-wide v0

    .line 106
    :cond_0
    new-instance v0, Lcom/vividsolutions/jts/algorithm/NotRepresentableException;

    invoke-direct {v0}, Lcom/vividsolutions/jts/algorithm/NotRepresentableException;-><init>()V

    throw v0
.end method

.method public getY()D
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/vividsolutions/jts/algorithm/NotRepresentableException;
        }
    .end annotation

    .line 112
    iget-wide v0, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->y:D

    iget-wide v2, p0, Lcom/vividsolutions/jts/algorithm/HCoordinate;->w:D

    div-double/2addr v0, v2

    .line 113
    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    move-result v2

    if-nez v2, :cond_0

    invoke-static {v0, v1}, Ljava/lang/Double;->isInfinite(D)Z

    move-result v2

    if-nez v2, :cond_0

    return-wide v0

    .line 114
    :cond_0
    new-instance v0, Lcom/vividsolutions/jts/algorithm/NotRepresentableException;

    invoke-direct {v0}, Lcom/vividsolutions/jts/algorithm/NotRepresentableException;-><init>()V

    throw v0
.end method
